package com.tpln.mapper;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Service;


@Service
public interface AuthMapper {

    @Select("select user_id from user_info where user_name = #{param1} and user_password = #{param2}")
    public String auth(String userName, String password);

    @Select("select user_name from user_info where user_id = #{userId}")
    String selectUserNameById(@Param("userId") String userId);
}
